/*
 * @Author: 肖芬芳 1911683843@qq.com
 * @Date: 2022-12-02 15:00:08
 * @LastEditors: 肖芬芳 1911683843@qq.com
 * @LastEditTime: 2022-12-02 15:08:40
 * @FilePath: \blog\routes\admin\system\role\getRightList.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
module.exports = async (req, res) => {
    let rightList = [{
        id: 10001,
        authName: '系统管理',
        children: [{
            id: 11001,
            authName: '用户管理',
            children: [{
                id:11101,
                authName:'新增'
            },{
                id:11102,
                authName:'编辑'
            },{
                id:11103,
                authName:'搜索'
            }]
        }, {
            id: 11002,
            authName: '角色管理',
            children: [{
                id:11201,
                authName:'新增'
            },{
                id:11202,
                authName:'编辑'
            },{
                id:11203,
                authName:'搜索'
            }]
        }]
    }, {
        id: 10002,
        authName: '文章管理',
        children: [{
            id:12001,
            authName:'文章管理',
            children:[{
                id:12101,
                authName:'新增'
            },{
                id:12102,
                authName:'编辑'
            },{
                id:12103,
                authName:'搜索'
            }]
        }]
    }]
    res.send({
        'code': 0,
        "data": rightList
    });
}